package iterables;
import java.util.*;

public class IterableOrdenadoAlternativo<T> implements Iterable <T>{
	private Vector <T> v;
	public IterableOrdenadoAlternativo(Iterable<T> it1, Comparator<T> cp) {
		v = new Vector<T>();
		for(T aux : it1){
			v.add(aux);
		}
		java.util.Collections.sort(v,cp);
}

	public Iterator<T> iterator(){
		return  v.iterator();
	}
}

